package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysInstMapper;
import com.ruoyi.system.domain.SysInst;
import com.ruoyi.system.service.ISysInstService;

/**
 * 机构Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-08
 */
@Service
public class SysInstServiceImpl implements ISysInstService 
{
    @Autowired
    private SysInstMapper sysInstMapper;

    /**
     * 查询机构
     * 
     * @param id 机构主键
     * @return 机构
     */
    @Override
    public SysInst selectSysInstById(Long id)
    {
        return sysInstMapper.selectSysInstById(id);
    }

    /**
     * 查询机构列表
     * 
     * @param sysInst 机构
     * @return 机构
     */
    @Override
    public List<SysInst> selectSysInstList(SysInst sysInst)
    {
        return sysInstMapper.selectSysInstList(sysInst);
    }

    /**
     * 新增机构
     * 
     * @param sysInst 机构
     * @return 结果
     */
    @Override
    public int insertSysInst(SysInst sysInst)
    {
        return sysInstMapper.insertSysInst(sysInst);
    }

    /**
     * 修改机构
     * 
     * @param sysInst 机构
     * @return 结果
     */
    @Override
    public int updateSysInst(SysInst sysInst)
    {
        return sysInstMapper.updateSysInst(sysInst);
    }

    /**
     * 批量删除机构
     * 
     * @param ids 需要删除的机构主键
     * @return 结果
     */
    @Override
    public int deleteSysInstByIds(Long[] ids)
    {
        return sysInstMapper.deleteSysInstByIds(ids);
    }

    /**
     * 删除机构信息
     * 
     * @param id 机构主键
     * @return 结果
     */
    @Override
    public int deleteSysInstById(Long id)
    {
        return sysInstMapper.deleteSysInstById(id);
    }
}
